package com.yanqu.road.utils;

import com.yanqu.road.utils.property.Property;

import java.math.BigInteger;

public class RandomGoodInfo {
    private Property property;
    private int power;

    public RandomGoodInfo() {
    }

    public RandomGoodInfo(String str) {
        String[] s = str.split(";");
        String[] s2 = s[0].split("=");
        int goodId = Integer.parseInt(s2[0]);
        int num = Integer.parseInt(s2[1]);
        property = new Property(goodId, BigInteger.valueOf(num));
        power = Integer.parseInt(s[1]);
    }

    public Property getProperty() {
        return property;
    }

    public void setProperty(Property property) {
        this.property = property;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }

}

